package com.b2c.oa;

import com.b2c.oa.thymeleaf.PagingDialect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@ServletComponentScan
@ComponentScan(basePackages = {"com.b2c.oa", "com.ims.repository", "com.ims.service"})
@SpringBootApplication
@EnableScheduling
public class OAApplication {
    private static Logger log = LoggerFactory.getLogger(OAApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(OAApplication.class, args);
    }
    @Bean
    public PagingDialect paging() {
        return new PagingDialect();
    }




}
